package com.walk.zworld.ui.fragment.video.model

import java.io.Serializable

data class YouData<out T>(
    val errorCode: Int,
    val errorMsg: String,
    val id: String,
    val code: String,
    val message: String,
    val result: T
)

class PageRsp<T> {
    var current //当前页数
            = 0
    var pages //总共页数
            = 0
    var size //每页数量
            = 0
    var total //总数量
            = 0
    var records //数据
            : List<T>? = null
}

data class DtDetailModel (
    var id: String? = null,
    var createTime //创建时间
            : String? = null,
    var videoType: Int? = 0,
    var videoName //标题
            : String? = null,
    var detail //内容
            : String? = null,
    var poster //封面图
            : String? = null,
    var imageUrls //照片集合(字符串类型)
            : String? = null,
    var imageUrlsList //照片集合
            : List<String>? = null,
    var url //视频链接
            : String? = null,
    var dianzanCount: Int? //点赞数量
            = 0,
    var shoucangCount: Int? //收藏数量
            = 0,
    var zhuanfaCount: Int? //转发数量
            = 0,
    var commentsCount: Int? //评论数量
            = 0,
    var myDianzanCount: Int? //自己是否点赞当前帖子
            = 0,
    var myShoucangCount: Int? //自己是否收藏当前帖子
            = 0,
    var createUser //创建者id
            : String? = null,
    var createUsername //创建者
            : String? = null,
    var createUserPic //创建者头像
            : String? = null,
    var width: Int? //封面图宽
            = 0,
    var height: Int? //封面图高
            = 0,
    var city //城市
            : String? = null,
    var isFocusOn: Int? //0未关注 1已关注
            = 0,
    var productList //关联的商品
            : List<SimpleGoodsItem>? = null,
    var commentList //评论列表
            : List<CommentModel>? = null,
    var atUserList //@的用户列表
            : List<AtUser>? = null,
    var huatiList //#的话题列表
            : List<AtTopic>? = null,
)
class SimpleGoodsItem : Serializable {
    var id: String? = null
    var image: String? = null
    var name: String? = null
    var price //商品价
            : String? = null
    var otprice //市场价
            : String? = null
    var actprice //活动价
            : String? = null
    var storeInfo //商品简介
            : String? = null
    var type //0普通商品  1秒杀商品 2团购商品
            = 0
    var isCheck //是否选中
            = false
    var recordId //浏览记录id
            : String? = null
}
class CommentModel {
    var id: String? = null
    var targetId //帖子id
            : String? = null
    var ownerpic //创建人头像
            : String? = null
    var content //评论内容
            : String? = null
    var photo //评论图片
            : String? = null
    var nickname //评论者昵称
            : String? = null
    var createTime //创建时间
            : String? = null
    var createId //创建用户id
            : String? = null
    var replayId //回复某个用户id
            : String? = null
    var replyName //回复某个用户昵称
            : String? = null
    var dianzanCount //点赞数
            = 0
    var myDianzanCount //0未点赞 1已点赞
            = 0
    var atUserList //艾特的用户列表
            : List<AtUser>? = null
    var child //回复list
            : List<CommentModel>? = null
    var isAudit //2评论违规驳回 1未审核  3通过
            : String? = null
    var isOpenReplay //是否展开回复
            = false
}
class AtUser {
    var id: String? = null
    var name //昵称
            : String? = null
}
class AtTopic {
    var id: String? = null
    var content //话题名称
            : String? = null
}
